package com.ruoyi.project.mydy.orderrecord.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 订单记录对象 dl_order_record
 * 
 * @author mhg
 * @date 2021-10-07
 */
public class DlOrderRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 影院id */
    @Excel(name = "影院id")
    private Long cinemaId;

    /** 电影id */
    @Excel(name = "电影id")
    private Long movieId;

    /** 张数 */
    @Excel(name = "张数")
    private Long num;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private BigDecimal totalPrice;

    /** 优惠价格 */
    @Excel(name = "优惠价格")
    private BigDecimal reducePrice;

    /** 实际支付价格 */
    @Excel(name = "实际支付价格")
    private BigDecimal actualPrice;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setCinemaId(Long cinemaId)
    {
        this.cinemaId = cinemaId;
    }

    public Long getCinemaId()
    {
        return cinemaId;
    }
    public void setMovieId(Long movieId)
    {
        this.movieId = movieId;
    }

    public Long getMovieId()
    {
        return movieId;
    }
    public void setNum(Long num)
    {
        this.num = num;
    }

    public Long getNum()
    {
        return num;
    }
    public void setTotalPrice(BigDecimal totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice()
    {
        return totalPrice;
    }
    public void setReducePrice(BigDecimal reducePrice)
    {
        this.reducePrice = reducePrice;
    }

    public BigDecimal getReducePrice()
    {
        return reducePrice;
    }
    public void setActualPrice(BigDecimal actualPrice)
    {
        this.actualPrice = actualPrice;
    }

    public BigDecimal getActualPrice()
    {
        return actualPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("cinemaId", getCinemaId())
            .append("movieId", getMovieId())
            .append("num", getNum())
            .append("totalPrice", getTotalPrice())
            .append("reducePrice", getReducePrice())
            .append("actualPrice", getActualPrice())
            .append("createTime", getCreateTime())
            .toString();
    }
}
